Custom Views / View Controllers
-
Undocumented
See moreDeclaration
Objective-C
@interface VouchrWebImageView : FBShimmeringViewSwift
class VouchrWebImageView : FBShimmeringView
-
See moreSealedVoucherViewis a sealedEnvelopeView. It shows ribbons and a seal overtop of anEnvelopeView.Declaration
Objective-C
@interface SealedVoucherView : UIViewSwift
class SealedVoucherView : UIView
-
See moreCreationItemImageViewis the view that is dropped into theEnvelopeViewof theVoucherCreationViewController. It represents a chosenPersonalizationOptionobject by the creatingUser.Declaration
Objective-C
@interface CreationItemImageView : VouchrWebImageViewSwift
class CreationItemImageView : VouchrWebImageView
-
The
VouchrLoadingViewProtocolis responsible for animating any custom loading view. It is used for fullscreen loading views.See moreNote
User is responsible for adding the loading view as a subview and constraining it to the view it should appear on.Declaration
Objective-C
@protocol VouchrLoadingViewProtocolSwift
protocol VouchrLoadingViewProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VouchrDialogView : UIView <VouchrDialogViewProtocol> + (instancetype)vouchrDialogWithVouchrTheme:(VouchrTheme *)vouchrTheme; - (void)keyboardWillShow:(NSNotification *)notification; - (void)keyboardWillHide:(NSNotification *)notification; @endSwift
class VouchrDialogView : UIView, VouchrDialogViewProtocol
-
Undocumented
See moreDeclaration
Objective-C
@protocol VouchrDialogViewProtocol - (void)showOnParentViewController:(UIViewController *)parentViewController; - (void)setTitle:(nullable NSString *)title; - (void)setBodyText:(nullable NSString *)body; - (void)setPositiveButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler; - (void)setNegativeButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler; - (void)setError:(nullable NSError *)error; - (void)setView:(UIView *)view; - (void)dismiss; @endSwift
protocol VouchrDialogViewProtocol
-
VouchrActionSheetViewController is a custom action sheet used by the SDK. It works similarly to a UIAlertController with style UIAlertControllerStyleActionSheet. Each action sheet item is an action in the controller. If there are too many actions to fit on screen, the actions will become scrollable. A cancel action is automatically added.
See moreDeclaration
Objective-C
@interface VouchrActionSheetViewController : UIViewControllerSwift
class VouchrActionSheetViewController : UIViewController -
The
See moreVouchrActionSheetViewControllerDelegateprotocol is responsible for responding toVouchrActionSheetItemselection and dismissing theVouchrActionSheetViewController.Declaration
Objective-C
@protocol VouchrActionSheetViewControllerDelegate <NSObject>Swift
protocol VouchrActionSheetViewControllerDelegate : NSObjectProtocol
-
VouchrActionSheetItem represents one item inside a VouchrActionSheetViewController.
See moreDeclaration
Objective-C
@interface VouchrActionSheetItem : NSObjectSwift
class VouchrActionSheetItem : NSObject
View on GitHub
Custom Views / View Controllers Reference